﻿@model MSAcademic.v2.Web.Areas.Admin.Models.Picture.EditArticleBigPictureViewModel
@{
    ViewBag.Title = "Uredi veliku sliku za " + Model.ArticleId;
}

<script type="text/javascript"> 
    $(function () {

        msacademic.initializeJCrop("@Model.BigPictureHeight" , "@Model.BigPictureWidth" , $('#croppedUrl'), {
            minSize: [@Model.BigPictureWidth,@Model.BigPictureHeight] 
        });

    });
</script>

<div class="msacademic popup">
    <h2>Uređivanje velike slike</h2>

    @using(Html.BeginForm())
    {
        @Html.HiddenFor(m=>m.OriginalUrl)
        @Html.HiddenFor(m=>m.ArticleId)
        @Html.HiddenFor(m=>m.CroppedBigPictureUrl,new{Id="croppedUrl"})
   
        <div class="image-cropper">
            <img src="@Model.BigPictureUrl" class="image" id="normalPicture"alt=""/>
        </div>
        
        <div class="actions-wrapper">
            <span class="info">Velika slika se koristi kod istaknutih novosti.</span>
             
            <a href="@Url.RouteUrl("UploadArticleFrontPictures", new { articleId = Model.ArticleId })" class="cancel">Odustani</a> 
            <a class="positive submit">Spremi promjene <i class="icon-ok"></i></a> 
        </div>   
    }
</div>

